package com.zsj.redis.config;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;


@Data
@ToString
public class RedisConfigBean {

    @Value("${spring.redis.host:localhost}")
    private String host;
    @Value("${spring.redis.port:6379}")
    private int port;
    @Value("${spring.redis.database:0}")
    private int database;
    @Value("${spring.redis.timeout:10000}")
    private long timeout;
    @Value("${spring.redis.password:}")
    private String password;

}
